package day04.work01;

public class Circle extends Shape{
    private double r;

    public Circle(){}
    public Circle(String color,double r){
        super(color);
        this.r=r;
    }
    @Override
    public double area() {
        return Math.PI*r*r;
    }
    
}
